﻿package mortal.game.view.copy.towerCopy.other
{
    import com.mui.controls.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.display.*;

    public class TowerBigGanTipPanel extends GSprite
    {
        protected var _bg:GBitmap;
        protected var _ganTitle:GBitmap;
        protected var _ganNum:BitmapNumberText;

        public function TowerBigGanTipPanel()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._bg = UIFactory.gBitmap(ImagesConst.tower_win_newGanBg, 0, 0, this);
            this._ganTitle = UIFactory.gBitmap(ImagesConst.tower_win_newGan, 31, 17, this);
            this._ganNum = UIFactory.bitmapNumberText(64, 17, "DailyNormalNum.png", 19, 21, -8, this, 9, 1);
            this._ganNum.text = "1";
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._bg = null;
            this._ganTitle = null;
            this._ganNum = null;
            return;
        }// end function

        public function updateGan(param1:int) : void
        {
            if (param1 == 0)
            {
                this._ganNum.text = "1";
            }
            else
            {
                this._ganNum.text = "" + param1;
            }
            return;
        }// end function

    }
}
